import Home from '../containers/Home';
import My from '../containers/My';
import OrgInfo from '../containers/OrgInfo';
import ProductInfo from '../containers/ProductInfo';
import Buy from '../containers/Buy';
import EditInfo from '../containers/EditInfo';
import { MyCard } from '../containers/MyCard';
import { MyCourse } from '../containers/MyCourse';
import { OrderCourse } from '../containers/OrderCourse';
import { ROUTE_KEY } from './menu';
import SuccessPage from '../containers/Succeed';

export const ROUTE_COMPONENT = {
  [ROUTE_KEY.HOME]: Home,
  [ROUTE_KEY.MY]: My,
  [ROUTE_KEY.ORG_INFO]: OrgInfo,
  [ROUTE_KEY.PRODUCT_INFO]: ProductInfo,
  [ROUTE_KEY.BUY]: Buy,
  [ROUTE_KEY.EDIT_INFO]: EditInfo,
  [ROUTE_KEY.MY_CARD]: MyCard,
  [ROUTE_KEY.MY_COURSE]: MyCourse,
  [ROUTE_KEY.ORDER_COURSE]: OrderCourse,
  [ROUTE_KEY.Payment_Success]: SuccessPage,
};
